-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assistant: Change flags name #2230
Conversation
BundleMonFiles updated (1)
Unchanged files (12)
Total files change +27B 0% Final result: ✅ View report in BundleMon website ➡️ |
const showAssistantForMobile = isFlagshipApp() | ||
? flag('cozy.searchbar.enabled-for-flagship') | ||
: flag('cozy.searchbar.enabled') && isMobile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
La variable showAssistantForMobile
devrait plutôt s'appeler showSearchbarForMobile
du coup?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oui mais à ce compte là faudrait renommer les composants également... en fait "assistant" est parfois un mot générique pour toute la feature, parfois parle spécifiquement de la partie chat... je pense faire ça dans une autre PR
Permet d'apporter un peu plus de granularité dans la gestion des fonctionnalités
cozy.searchbar.enabled
: Affiche la barre de recherche (uniquement desktop/mobile web)cozy.searchbar.enabled-for-flagship
: Affiche la barre de recherche (uniquement flagship app)cozy.search.enabled
: Active la fonction de recherchecozy.assistant.enabled
: Active la fonctionnalité "Cozy Assistant"